package com.pz.minioproxy.vo;

import lombok.Data;

import java.util.List;

@Data
public class UploadBigFileRes {
    /**
     * 分块是否传递完成 -- 0: 未完成，1: 完成，-1：文件缺损
     */
    private int status;

    /**
     * 文件在minio的位置
     */
    private String objectName;

    /**
     * 缺损文件索引，当 status==-1 时该值必须含有
     */
    private List<Long> defeatRecords;

    public UploadBigFileRes(int status, String objectName) {
        this.status = status;
        this.objectName = objectName;
        this.defeatRecords = null;
    }

    public UploadBigFileRes(int status, String objectName, List<Long> defeatRecords) {
        this.status = status;
        this.objectName = objectName;
        this.defeatRecords = defeatRecords;
    }
}
